package com.engiu.test.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Hyperlink;
import com.google.gwt.user.client.ui.Widget;

public class MainPanel extends Composite{

	private static MainPanelUiBinder uiBinder = GWT
			.create(MainPanelUiBinder.class);
	
	interface MainPanelUiBinder extends UiBinder<Widget, MainPanel> {
	}

	@UiField Hyperlink probar1;
	@UiField Hyperlink probar2;
	@UiField Hyperlink probar3;
	@UiField Hyperlink probar4;
	
	public MainPanel() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	public MainPanel(String firstName) {
		initWidget(uiBinder.createAndBindUi(this));
	}
	
	public void setProBar1ClickHdlr(ClickHandler handler){
		probar1.addClickHandler(handler);
	}
	
	public void setProBar2ClickHdlr(ClickHandler handler){
		probar2.addClickHandler(handler);
	}
	
	public void setProBar3ClickHdlr(ClickHandler handler){
		probar3.addClickHandler(handler);
	}
	
	public void setProBar4ClickHdlr(ClickHandler handler){
		probar4.addClickHandler(handler);
	}
	
}
